Location: SDK\Samples\Classic ASP\Catalog Sitelet
The primary goal of the Catalog Sitelet is to demonstrate how to use the Catalog object model to browse and search a product catalog, providing you with a functional example of the catalog API in action.
The Catalog Sitelet consists of a package file, which you unpack using Commerce Server Site Packager. The source code for the sitelet is included in this package. You can deploy the sitelet to a server running Commerce Server 2002 without the need for code modifications. After the Catalog Sitelet has been deployed, you can use it to browse and search a sample catalog.
The Catalog Sitelet demonstrates the two query mechanisms supported by the Catalog object model, and also demonstrates using the Catalog object model to provide catalog browsing functionality.
Best coding practices are maintained in this example, and the code represents the prescribed method of using the object model.
ASP-based Catalog Sitelet Code Notes
Installing the ASP-based Catalog Sitelet
This sitelet demonstrates multilingual functionality. The following languages are supported: English, French, German, and Japanese. The ASP sitelets set the language character sets in the Main routine of several ASP pages using code such as the following:
Sub Main()
Set g_ojbMsgMgr = Application ("MSCSMessageManager")
Response.CharSet = "iso-8859-1"
End Sub
Note
You unpack the Catalog Sitelet using Commerce Server Site Packager. The package file for the ASP version of the Catalog Sitelet is located in the following directory:
<drive>:\Program Files\Microsoft Commerce Server 2002\SDK\Samples\Classic ASP\Catalog Sitelet\SDK-CATALOG-SITELET.PUP
Use the following procedure to install the Catalog Sitelet on one computer using the Quick mode in Site Packager.
Unpacking the ASP-based Catalog Sitelet using the Custom unpack option and creating independent databases for each of the site resources is not recommended.